// run: $exec > input
#include <iostream>
#include <ctime>
#include <cstdlib>

int main()
{
	std::srand(std::time(0));
	int T = 10;
	std::cout << T << "\n";
	for (int i = 0; i < T; i++) {
		int n = 1000, upper = 200000000;
		std::cout << n << '\n';
		for (int i = 0 ; i < n; i++)
			std::cout << (rand() % upper) - (upper / 2) << " " << (rand() % upper) - (upper / 2) << "\n";
	}
}

